<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link rel="stylesheet" type="text/css" href="http://www.w3cschool.cc/try/jeasyui/themes/icon.css">
	<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="http://www.w3cschool.cc/try/jeasyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="<%=path%>/js/datagrid-filter.js"></script>
	<script>
$(function(){
	var data = [
	        	{"productid":"FI-SW-01","listprice":36.50,"itemid":"EST-1"},
	        	{"productid":"K9-DL-01","listprice":18.50,"itemid":"EST-10"},
	        	{"productid":"RP-SN-01","listprice":38.50,"itemid":"EST-11"}, 	
	        ];
	
 	var dg = $('#tt').datagrid({
		filterBtnIconCls:'icon-filter',
		
	    data:data,
    	columns:[[
                {field:'itemid',title:'id',width:100},      
  				{field:'productid', title:'cropid',width:100},
  				{field:'listprice',title:'price',width:100}
  				  ]],
	});
	 dg.datagrid('enableFilter', [{
		field:'listprice',
		type:'numberbox',
		options:{precision:1},
		op:['equal','notequal','less','greater']
	}]);  

})
	
	</script>
<title>Insert title here</title>
</head>
<body>	
	<table id="tt">
	
	</table>
</body>
</html>